<?php

declare (strict_types=1);

namespace app\bbxw\controller;


use think\admin\Controller;
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Shared\Date;
/**
 * 关于我们
 * @class Package
 * @package app\bbxw\controller
 */
class AboutUs extends Controller
{

    /**
     * 绑定数据表
     * @var string
     */
    private $table = 'article';
    /**
     * 关于我们
     * @auth true
     * @menu true
     * @login true
     */
    public function index()
    {

        $this->title = 'koi的历史及相关介绍';
        if($this->request->isPost()){
            $this->app->db->name($this->table)->save($this->request->post());
        }
        $this->data = $this->app->db->name($this->table)->where(['type'=>2])->find();
        $this->fetch("form");
    }


}